﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.OleDb;

namespace DAO
{
    public class ConnectionDAO
    {
        public static OleDbConnection ketnoi = null;

        private static string chuoiketnoi = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=Cafe_htc.mdb";

        public static void MoKetNoi()
        {
            try
            {
                ketnoi = new OleDbConnection(chuoiketnoi);
                ketnoi.Open();
            }
            catch (Exception ex)
            {
                ketnoi = new OleDbConnection();
            }
        }
    }
}
